package com.magicstone.common.Time;

public class Xiong{
	private Integer year;
	private Integer month;
	private Integer xiong;
	public Xiong(Integer year, Integer month, Integer xiong){
		this.year = year;
		this.month = month;
		this.xiong = xiong;
	}
	public Xiong(){
		
	}
	
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getXiong() {
		return xiong;
	}
	public void setXiong(Integer xiong) {
		this.xiong = xiong;
	}
	
	public String toString(){
		String result = year + "年 - " + month + " 月 ";
		if(xiong == 1){
			result += "上旬";
		}else if(xiong == 2){
			result += "中旬";
		}else if(xiong == 3){
			result += "下旬";
		}
		return result; 
	}
	
	public String toString1(){
		String result = year + "." +  (month < 10 ? ("0" + month) : month);
		if(xiong == 1){
			result += ":上旬";
		}else if(xiong == 2){
			result += ":中旬";
		}else if(xiong == 3){
			result += ":下旬";
		}
		return result; 
	}
}